package com.chenyun.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chenyun.boot.datasource.model.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 租户管理表
 * @author: Lonni
 * @date: 2023/12/5 0005 15:46
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_tenant")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysTenant extends BaseEntity {


    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;
    private String userId;
    private String userName;

    private String mobile;

    /**
     * 租户状态（0正常 1停用）
     */
    private Integer status;
    /**
     * 域名
     */
    private String domain;
    /**
     * 过期时间
     */
    private Date expireTime;
    /**
     * 类型id
     */
    private Integer typeId;

    /**
     * 账户数量
     */
    private Integer accountCount;
    /**
     * JSON 格式 扩展信息
     */
    private String extra;

}



